Return

Edit Task: SetTaskResourceAmount

Format

SCHED / EditTask '<TaskName>' SetTaskResourceAmount '<ResourceName>' <FixedAmount> <RateAmount>

Description

The SetTaskResourceAmount attribute under EditTask defines the resource usage's fixed of rate amount for all of the task's possibilities. This command does not change the rate of resource usage, only the amount (i.e. if a resource was set to be used at a rate of 10 Mb per minute, this command can only change the amount from 10 Mb to another number). If RateType is defined as FixedPlusRate, both FixedAmount and RateAmount should be provided, otherwise only one value is needed.

Parameters

ParameterDescription
ResourceNameA string of text in single quotes of the resource that is being defined within the command.
FixedAmountA double value that is used in conjunction with the UsageType and RateType to determine how much change will occur to the resource capacity when assigned. Used only when RateType is Fixed or FixedPlusRate.
RateAmountA double value that is used in conjunction with the UsageType and RateType to determine how much change will occur to the resource capacity when assigned. Used only when RateType is Rate or FixedPlusRate.

Examples

Change the resource usage amount for all possibilities that use ResB in TaskA.

SCHED / EditTask 'TaskA' SetTaskResourceAmount 'ResB' 23

Change the Fixed resource usage amount for all possibilities that use ResA in TaskA to 23, and the Rate resource usage amount for those possibilities to 0.5.

SCHED / EditTask 'TaskA' SetTaskResourceAmount 'ResA' 23 0.5